<template>
    <router-view v-slot="{Component}">
      <keep-alive>
        <component :is="Component"></component>
      </keep-alive>
    </router-view>
</template>
<script>
export default {
  name: 'App'
}
</script>
<style>
.target{
  width: 100px;
  height: 100px;
  background-color: red;
}
</style>
